import { EnumBjlResult } from "@/models/enums/EnumBjlResult";
import { RecmInfo, RoundInfo } from "../ExecutePlan";
import { IRecmStrategy } from "../IRecmStrategy";

/**
 * 
 */
export interface IRandomNumOption {
    num: number;
}
/**
 * 随机组策略
 */
export class RandomNumStrategy implements IRecmStrategy {
    /**
     * 配置
     */
    option: IRandomNumOption;
    strategyName: string = "RandomNumStrategy";
    debugCompoenent: string = "RandomNumDebug";
    /**
     * 构造函数
     */
    constructor() {
        this.option = { num: 1 };
    }
    resetRecm(): void {
    }
    copyValue(valueObj: any): void {
        let obj = valueObj as RandomNumStrategy;
        if (obj) {
            this.strategyName = obj.strategyName;
            this.debugCompoenent = obj.debugCompoenent;
            Object.assign(this.option, obj.option);
        }

    }
    setResult(roundInfo: RoundInfo, recmInfo: RecmInfo, multiple: number, waterRate: number, fuliRate: number): void {
        throw new Error("Method not implemented.");
    }
    setOption<T>(option: T): void {
        throw new Error("Method not implemented.");
    }
    toResult(roundInfo: RoundInfo): EnumBjlResult {
        throw new Error("Method not implemented.");
    }

}